package com.scau402.system1.domain.vo;

import cn.hutool.core.bean.BeanUtil;
import com.scau402.system1.domain.po.WmsCheckboundOrderDetailPO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class WmsCheckBoundOrderDetailVO {
    /**
     * 盘点单号
     */
    private String orderCode;
    /**
     * 总量
     */
    private Long totalNum;
    /**
     * 总成本
     */
    private BigDecimal totalPrice;
    /**
     * 已盘点数量
     */
    private Long curNum;
    /**
     * 已盘点成本
     */
    private BigDecimal curPrice;

    /**
     * 通过PO构建DTO
     * @param checkboundOrderDetailPO PO对象
     */
    public WmsCheckBoundOrderDetailVO(WmsCheckboundOrderDetailPO checkboundOrderDetailPO) {
        BeanUtil.copyProperties(checkboundOrderDetailPO, this);
    }
}
